$OpenBSD: patch-gnome_CanvasPathDef_custom,v 1.1 2016/11/09 11:18:37 ajacoutot Exp $

XXX Fix build with mono-gtk2 >=2.12.42

--- gnome/CanvasPathDef.custom.orig	Wed Nov  9 12:09:57 2016
+++ gnome/CanvasPathDef.custom	Wed Nov  9 12:07:47 2016
@@ -21,9 +21,7 @@
 
 		public static CanvasPathDef NewFromBpath (Art.Bpath bpath)
 		{
-                        IntPtr native_bpath = GLib.Marshaller.StructureToPtrAlloc (bpath);
-                        CanvasPathDef result = new CanvasPathDef (gnome_canvas_path_def_new_from_bpath (native_bpath));
-			GLib.Marshaller.Free (native_bpath);
+                        CanvasPathDef result = new CanvasPathDef (gnome_canvas_path_def_new_from_bpath (ref bpath));
 			return result;
 		}
 
